﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.DirectoryServices.AccountManagement;

using LeMigue.Framework.Utils;

using LeMigue.Scrum.Iterface.Model;

using LeMigue.Scrum.Iterface.Service;

using LeMigue.TeamPortal.Base.Biz.Interface;
using LeMigue.TeamPortal.Base.Biz.Implement;
using LeMigue.TeamPortal.Base.Biz;

namespace LeMigue.TeamPortal.Base.Mvc
{
    public class TeamPortalController : Controller
    {
        #region propriedades

        //TODO: implmentar tipo um unity
        //protected ITeamService TeamService = new TeamProjectService();
        

        public Team Team
        {
            get
            {
                User usuario = FactoryBiz.CurrentUser.GetUser(System.Web.HttpContext.Current);

                return Cache.Get<Team>(usuario.Ref, "Team");
            }
        }

        #endregion

    }
}
